<template>
  <div class="external-sites">
    <iframe :src="src" frameborder="0" v-if="src"></iframe>
  </div>
</template>

<script>
export default {
  name: 'ExternalSites',
  data () {
    return {
      src: ''
    }
  },
  created () {
    this.src = this.$route.query.src
  },
  watch: {
    $route () {
      this.src = this.$route.query.src
    }
  }
}
</script>

<style lang="scss" scoped>
.external-sites {
  width: 100%;
  height: 100%;

  iframe {
    width: 100%;
    height: 100%;
  }
}
</style>
